if ( ts_alternate_row_colors ) {
ts_alternate( table );
}
-}
+};
window.ts_initTransformTable = function() {
if ( typeof wgSeparatorTransformTable == 'undefined'
"[-+\u2212]?" + digitClass + "+%?" + // Generic localised
")$", "i"
);
-}
+};
window.ts_toLowerCase = function( s ) {
return s.toLowerCase();
-}
+};
window.ts_dateToSortKey = function( date ) {
// y2k notes: two digit years less than 50 are treated as 20XX, greater than 50 are treated as 19XX
}
}
return '00000000';
-}
+};
window.ts_parseFloat = function( s ) {
if ( !s ) {
}
var num = parseFloat( s.replace(/[, ]/g, '').replace("\u2212", '-') );
return ( isNaN( num ) ? -Infinity : num );
-}
+};
window.ts_currencyToSortKey = function( s ) {
return ts_parseFloat(s.replace(/[^-\u22120-9.,]/g,''));
-}
+};
window.ts_sort_generic = function( a, b ) {
return a[1] < b[1] ? -1 : a[1] > b[1] ? 1 : a[2] - b[2];
-}
+};
window.ts_alternate = function( table ) {
// Take object table and get all it's tbodies.
tableRows[j].className = newClassName + ( j % 2 == 0 ? 'even' : 'odd' );
}
}
-}
+};
/*
* End of table sorting code
messageDiv.innerHTML = message;
}
return true;
-}
+};
/**
* Inject a cute little progress spinner after the specified element
} else {
element.parentNode.appendChild( spinner );
}
-}
+};
/**
* Remove a progress spinner added with injectSpinner()
if( spinner ) {
spinner.parentNode.removeChild( spinner );
}
-}
+};
window.runOnloadHook = function() {
// don't run anything below this for non-dom browsers
for ( var i = 0; i < onloadFuncts.length; i++ ) {
onloadFuncts[i]();
}
-}
+};
/**
* Add an event handler to an element
} else if( element.attachEvent ) {
element.attachEvent( 'on' + attach, handler );
}
-}
+};
window.hookEvent = function( hookName, hookFunct ) {
addHandler( window, hookName, hookFunct );
-}
+};
/**
* Add a click event handler to an element
*/
window.addClickHandler = function( element, handler ) {
addHandler( element, 'click', handler );
-}
+};
/**
* Removes an event handler from an element
} else if( window.detachEvent ) {
element.detachEvent( 'on' + remove, handler );
}
-}
+};
// note: all skins should call runOnloadHook() at the end of html output,
// so the below should be redundant. It's there just in case.
hookEvent( 'load', runOnloadHook );